#include "stm32f10x.h"                  // Device header
#include <math.h>
float* Tank;
#define pi 3.1415926535
float Angle (void)
{
	float Angle = 0.0f;
	float rad = 0.0f;
	  uint8_t x;
	  uint8_t y;
	x = Tank[0];
  y = Tank[1];
  rad = atan2(y, x)*180.0f/ pi;

	if(rad < 360.0f)
	{
		rad += 360.0f;
	
	}
	return Angle ;

}
